package com.groupbuying.storeinternal.dao.forManage;

import com.groupbuying.storeinternal.domain.forManage.StoreAccountRoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * 用户与角色对应关系
 * @author yuwenxiaodong
 * @email yuwenxiaodong@126.com
 * @date 2019-03-22 11:55:00
 */
@Mapper
@Repository
public interface StoreAccountRoleDao {

	StoreAccountRoleDO get(Long id);

	List<StoreAccountRoleDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	int save(StoreAccountRoleDO storeAccountRoleDO);

	int update(StoreAccountRoleDO storeAccountRoleDO);

	int remove(String id);

	int batchRemove(String[] ids);

	List<BigInteger> listRoleId(String userId);

	int removeByAccountId(String userId);

	int batchSave(List<StoreAccountRoleDO> list);

	int batchRemoveByAccountId(String[] ids);

	StoreAccountRoleDO getByAccountId(String accountId);
}
